package com.blindBox.front.controller.goToPageController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

//页面跳转类
@Controller
public class GoToPageController
{
    //跳转到主页
    @GetMapping("/to_index")
    public String gotoIndex()
    {
        return "main";
    }

    //看当前用户抽到的纸条信息
    @GetMapping("/to_mypaper")
    public String gotoMyPaper()
    {
        return "myTips";
    }

    //看到用户放入的纸条信息
    @GetMapping("/to_myputpaper")
    public String gotoMyPutPaper()
    {
        return "myPuts";
    }

    //查看用户纸条被获取的情况
    @GetMapping("/to_getMe")
    public String gotoGetMe()
    {
        return "getMe";
    }
}
